package com.woniu.petkonwledge.service.impl;

import com.woniu.common.entity.ExposureInfo;
import com.woniu.petkonwledge.mapper.ExposureInfoMapper;
import com.woniu.petkonwledge.service.ExposureInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExposureInfoServiceImpl implements ExposureInfoService {
    @Autowired
    ExposureInfoMapper exposureInfoMapper;

    @Override
    public void addExposureInfo(ExposureInfo exposureInfo) {
        exposureInfoMapper.insertExposureInfo(exposureInfo);
    }

    @Override
    public List<ExposureInfo> selectExposureInfo(int state) {
        return exposureInfoMapper.selectExposureInfo(state);
    }

    @Override
    public void reviewExposureInfo(int state,int id) {
        exposureInfoMapper.reviewExposureInfo(state,id);
    }
}
